<?php
include dirname(dirname(dirname(__FILE__))).'/admin-verify.php';
include dirname(dirname(__FILE__))."/functions.php";
if (isset($_POST["val"])) {
$val=$_POST["val"];
$val1=$_POST["val1"];
$content=json_encode($val);
$class_content=json_encode($val1);
$form_date=date("y-m-d");
$author_id=$_SESSION["user_id"];
$params = array('content' =>"'".$content."'" ,
		         'form_date'=>'"'.$form_date.'"',
		         'author_id'=>$author_id,
		         'class_content'=>"'".$class_content."'",
		         );

if(addGoodsForm($params)){

	echo "yes";

}else{
	echo "no";
}
}else{
	echo "no";
}



?>